home *** CD-ROM | disk | FTP | other *** search
Makefile | 1999-07-20 | 1.2 KB | 48 lines |
- OBJECTS=__initdetach.o
- BOBJECTS=__initdetach.bo
- OPTIONS=-I ../headers -O3 -Wall
- BOPTIONS=$(OPTIONS) -fbaserel -msmall-code
- REDEF=-D _DOSBase=___DOSBase \
- -D _UtilityBase=___UtilityBase \
- -D _MathIeeeSingBasBase=___MathIeeeSingBasBase \
- -D _MathIeeeSingTransBase=___MathIeeeSingTransBase \
- -D _MathIeeeDoubBasBase=___MathIeeeDoubBasBase \
- -D _MathIeeeDoubTransBase=___MathIeeeDoubTransBase \
- -D _LocaleBase=___LocaleBase
-
- #Use private library bases to avoid naming collisions
- %.o: %.c
- gcc $(OPTIONS) -S $*.c -o $*.S 2>&1|tee $*.err
- gcc -E -traditional -P $(REDEF) $*.S -o $*2.S
- gcc $*2.S -c -o $*.o
- -rm $*.S $*2.S
- -if test ! -s $*.err; then rm $*.err; fi
-
- %.bo: %.c
- gcc $(BOPTIONS) -S $*.c -o $*.S 2>&1|tee $*.err
- gcc -E -traditional -P $(REDEF) $*.S -o $*2.S
- gcc $*2.S -c -o $*.bo
- -rm $*.S $*2.S
- -if test ! -s $*.err; then rm $*.err; fi
-
- all: libdetach.a blibdetach.a
-
- clean:
- -rm *.o *.bo *.err
-
- veryclean: clean
- -rm libdetach.a blibdetach.a makefile
-
- libdetach.a: $(OBJECTS) makefile
- -rm libdetach.a
- ar -q libdetach.a $(OBJECTS)
- ranlib libdetach.a
-
- blibdetach.a: $(BOBJECTS) makefile
- -rm blibdetach.a
- ar -q blibdetach.a $(BOBJECTS)
- ranlib blibdetach.a
-
- .SUFFIXES:
- .SUFFIXES: .o .bo
-